package com.yiduo.outpost.core.model.typehandlers;


import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @Author yanwen
 * @create 2021/8/27 11:54 上午
 */
public enum EnterpriseWechatType implements IEnum<Integer> {

    SERVICE_PROVIDER("服务商") {
        public String key(String agentId) {
            return "SERVICE_PROVIDER:";
        }

        public String groupId(Long advertiserAccountGroupId) {
            return "";
        }
    },
    BUILD_BY_ONESELF("自建应用") {
        public String key(String agentId) {
            return agentId + ":BUILD_BY_ONESELF:";
        }

        public String groupId(Long advertiserAccountGroupId) {
            return "";
        }
    },
    GENERATION_DEVELOPMENT("代开发应用") {
        public String key(String agentId) {
            return agentId + ":GENERATION_DEVELOPMENT:";
        }

        public String groupId(Long advertiserAccountGroupId) {
            return advertiserAccountGroupId + ":";
        }
    };


    private final String name;

    EnterpriseWechatType(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    @Override
    public Integer getValue() {
        return ordinal();
    }

    public String key(String agentId) {
        return "";
    }

    public String groupId(Long advertiserAccountGroupId) {
        return "";
    }
}
